<template>
  <my-event @do-event="doalter"></my-event>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import MyEvent from "./MyEvent.vue";
export default defineComponent({
  name: "event-consumer",
  components: {
    MyEvent,
  },
  setup() {
    const doalter = (name:string, num1:number,num2:number) => {
      console.log(name+num1+num2);
    };
    return { doalter };
  },
});
</script>
<style lang="scss" scoped></style>
